package com.example.java.reflect;

import java.util.Arrays;

public class ReflectApp {

    private static void clazzTest(){
        Class clazz;
        try {
            clazz = Class.forName("com.example.java.reflect.ReflectApp");
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
        System.out.println(clazz.getSimpleName());
        System.out.println(clazz.getSimpleName());
        System.out.println(Arrays.toString(clazz.getAnnotations()));
        System.out.println(Arrays.toString(clazz.getClasses()));
        System.out.println(clazz.getClassLoader());
    }
}
